<template>
  <van-nav-bar :title="title" left-arrow @click-left="onClickLeft" fixed />
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
defineProps<{
  title: string;
}>();
const onClickLeft = () => {
  router.go(-1);
};
</script>

<style scoped lang="scss">
.van-nav-bar {
  background-color: #ff5930;
  :deep .van-nav-bar__title {
    color: #fff;
  }
  :deep .van-icon {
    color: #fff;
    font-size: 20px;
  }
}
</style>
